/*
 * lexicalAnalyser.h
 *
 *  Created on: May 7, 2014
 *      Author: Hercules
 */

#ifndef LEXICALANALYSER_H_
#define LEXICALANALYSER_H_
#include "tokenGetter.h"
#include "instructionTable.h"
#include <stdio.h>
#define FIRST_UPPER_LETTER_ASCII 65
#define LAST_UPPER_LETTER_ASCII 90
#define FIRST_LOWER_LETTER_ASCII 97
#define LAST_LOWER_LETTER_ASCII 122
#define FIRST_NUMBER_ASCII 48
#define LAST_NUMBER_ASCII 57
#define UNDERSCORE_ASCII 95

void analyseToken(Token* to_analyse, InstructionTable* instruction_table);
bool isAValidInstruction(char* token_string,
		InstructionTable* instruction_table);
bool isStrANumber(char* token_string);
bool isAValidLabel(char *token_string);
bool isValidCaracter(char x);
bool isANumber(char x);

#endif /* LEXICALANALYSER_H_ */
